home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-68k-src / machines / amiga68k / include / ctype.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  1KB  |  52 lines

  1. #ifndef __CTYPE_H
  2. #define __CTYPE_H 1
  3.  
  4. extern unsigned char __ctype[];
  5.  
  6. int isalnum(int);
  7. int isalpha(int);
  8. int iscntrl(int);
  9. int isdigit(int);
  10. int isgraph(int);
  11. int islower(int);
  12. int isprint(int);
  13. int ispunct(int);
  14. int isspace(int);
  15. int isupper(int);
  16. int isxdigit(int);
  17.  
  18. #define isalpha(x)  (__ctype[(x)+1] & 3)
  19. #define isupper(x)  (__ctype[(x)+1] & 1)
  20. #define islower(x)  (__ctype[(x)+1] & 2)
  21. #define isdigit(x)  (__ctype[(x)+1] & 4)
  22. #define isxdigit(x) (__ctype[(x)+1] & 68)
  23. #define isalnum(x)  (__ctype[(x)+1] & 7)
  24. #define isspace(x)  (__ctype[(x)+1] & 8)
  25. #define ispunct(x)  (__ctype[(x)+1] & 16)
  26. #define iscntrl(x)  (__ctype[(x)+1] & 32)
  27. #define isprint(x)  (__ctype[(x)+1] & 151)
  28. #define isgraph(x)  (__ctype[(x)+1] & 23)
  29.  
  30. int toupper(int);
  31. int tolower(int);
  32.  
  33. #ifdef __INLINE_ALL
  34. #define __INLINE_TOUPPER
  35. #define __INLINE_TOLOWER
  36. #endif
  37.  
  38. #ifdef __INLINE_TOUPPER
  39. #pragma only-inline on
  40. #include "vbcc:libsrc/ctype/toupper.c"
  41. #pragma only-inline off
  42. #endif
  43. #ifdef __INLINE_TOLOWER
  44. #pragma only-inline on
  45. #include "vbcc:libsrc/ctype/tolower.c"
  46. #pragma only-inline off
  47. #endif
  48.  
  49.  
  50. #endif
  51.  
  52.